﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'proc_cm_DeleteEvent')
BEGIN
    PRINT 'Dropping Procedure proc_cm_DeleteEvent'
    DROP  Procedure  proc_cm_DeleteEvent
END
GO

PRINT 'Creating Procedure proc_cm_DeleteEvent'
GO

CREATE PROCEDURE [dbo].[proc_cm_DeleteEvent]
	@pEventId uniqueidentifier
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [dbo].[tbl_event]
	WHERE [event_id] = @pEventId
END
GO

GRANT EXEC ON dbo.proc_cm_DeleteEvent TO PUBLIC
GO
